sandwith_orders = ['菠萝', 'pastrami', '香蕉', 'pastrami', '草莓', 'pastrami']
finished_sandwith = []
print("pastrami 卖完了")
pastrami = 'pastrami'
while pastrami in sandwith_orders:
	# 知道下表的删法
	# del sandwith_orders[0]
	# 知道名字的删法
	sandwith_orders.remove(pastrami)

if pastrami not in sandwith_orders:
	print("pastrami 真的卖完了")

while sandwith_orders:
	sandwith = sandwith_orders.pop();
	print(f"I made your {sandwith} sandwich")
	finished_sandwith.append(sandwith)

print(f"sandwith has finished. {finished_sandwith}")
print(len(sandwith_orders))